package com.spring.propertyioc;

public class Boss {
    private String bossName;

    private Car car = new Car();

    public String getBossName() {
        return bossName;
    }

    public Car getCar() {
        return car;
    }

    public void setBossName(String bossName) {

        this.bossName = bossName;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    @Override
    public String toString() {
        return "Boss{" +
                "bossName='" + bossName + '\'' +
                ", car=" + car +
                '}';
    }
}
